package com.qcby.train.mybaitsplusdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @className: Student
 * @description: 学生表
 * @author: lxt
 * @create: 2021-04-26 20:26
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private Long id;
    private String name;
    private String number;
    private Long classInfoId;
    // 标识对应字段不映射数据库字段，属于视图类字段
    @TableField(exist = false)
    private String classInfoName;
    @TableField(exist = false)
    private ClassInfo classInfo;
    private LocalDateTime createTime;


}
